#include "qgun.h"

Qgun::Qgun(const QString & fileName,QGraphicsScene *scence):QpixmapItem(fileName,scence)
{
}
/*
QRectF Qgun::boundingRect() const
{

    return QRectF(-pixmap.width(),-pixmap.height(),pixmap.width(),pixmap.height());
}

void Qgun::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
    painter->drawPixmap(-pixmap.width(),-pixmap.height(),pixmap);
}
*/
